home *** CD-ROM | disk | FTP | other *** search
/ Aminet 51 / Aminet 51 (2002)(GTI - Schatztruhe)[!][Oct 2002].iso / Aminet / dev / lang / nano.readme < prev   
Encoding:
Text File  |  2002-08-10  |  3.8 KB  |  113 lines

  1. Short:    New interpreter
  2. Author:   jay-t@gmx.net
  3. Uploader: jay-t@gmx.net
  4. Version:  0.30
  5. Type:     dev/lang
  6.  
  7. Required: AmigaOS 2.0 (maybe 1.3 works too)
  8.  
  9. Long:
  10.  
  11.     Nano is a new interpreter with syntax near to BASIC and C.
  12.     The main features are:
  13.  
  14.     - types: short int, long int, double and string.
  15.     - arrays
  16.     - advanced array handling
  17.     - subroutines
  18.     - ANSI output functions: text styles, text locating, cursor moving...
  19.     - virtual memory
  20.  
  21.     Note: there's no file in-/output.
  22.  
  23.  
  24.     This is the famous "Hello world!" example:
  25.  
  26.     print "Hello world!", /n;
  27.  
  28.     What's the "/n" doing? It prints a linefeed.
  29.     To start this example, open a Shell and type:
  30.  
  31.     cd nanoprog:
  32.     nano hello.n
  33.  
  34.  
  35.     Let's say we want to print it five times. Then we need a loop:
  36.  
  37.     ---- cut --------------------------------------------
  38.  
  39.     // prints "Hello world!" five times
  40.  
  41.     int i;                          declare i
  42.  
  43.     i = 1;
  44.     while i <= 5;
  45.         print "Hello world!", /n;
  46.         inc i;                      replaces "i = i + 1;"
  47.     wend;
  48.  
  49.     ---- cut end ----------------------------------------
  50.  
  51.     This example shows the two ways to use comments. Everything without
  52.     a following semicolon is ignored. A whole line starts with "//".
  53.  
  54.     Now lets get some input:
  55.  
  56.     ---- cut -----------------------------
  57.  
  58.     string name[31];
  59.  
  60.     input "Your first name? " name;
  61.     print /n, "Hello ", name, "!", /n;
  62.  
  63.     ---- cut end -------------------------
  64.  
  65. -------------------------------------------------------------------------
  66. LhA Evaluation V1.38 - Copyright (c) 1991,92 Stefan Boberg.
  67. All rights reserved. Not for commercial use.
  68.  
  69. Listing of archive 'nano.lha':
  70. Original  Packed Ratio    Date     Time    Name
  71. -------- ------- ----- --------- --------  -------------
  72.      628     271 56.8% 06-Aug-02 08:07:20  nano.info
  73.      628     265 57.8% 06-Aug-02 08:07:20 +include.info
  74.       14      14  0.0% 05-Jan-02 08:29:42 +cl.dec
  75.       49      49  0.0% 05-Jan-02 08:29:22 +cl.sub
  76.       79      74  6.3% 06-Aug-02 08:12:18 +config.n
  77.       62      61  1.6% 24-Jul-02 09:38:12 +double_pre.dec
  78.      563     251 55.4% 24-Jul-02 16:30:14 +double_pre.sub
  79.       51      51  0.0% 03-Jan-02 18:16:34 +get_time.dec
  80.      717     252 64.8% 02-Feb-02 00:31:06 +get_time.sub
  81.      725     332 54.2% 10-Jun-02 01:51:30 +math.h
  82.       44      44  0.0% 05-Jan-02 08:45:42 +prpos.dec
  83.       82      76  7.3% 05-Jan-02 08:46:02 +prpos.sub
  84.       80      72 10.0% 25-May-02 17:18:58 +split_date.dec
  85.      745     242 67.5% 25-May-02 17:18:04 +split_date.sub
  86.       59      58  1.6% 04-Feb-02 23:40:00 +strleft.dec
  87.      234     136 41.8% 04-Feb-02 23:39:30 +strleft.sub
  88.       60      59  1.6% 04-Feb-02 23:29:46 +strright.dec
  89.      276     149 46.0% 04-Feb-02 23:36:38 +strright.sub
  90.      120      93 22.5% 23-Jul-02 16:32:40 +nano-Assigns
  91.      242     140 42.1% 06-Aug-02 08:07:20 +nano-Assigns.info
  92.    19872    6682 66.3% 26-Jul-02 08:32:22 +nano.guide
  93.      436     210 51.8% 06-Aug-02 08:07:20 +nano.guide.info
  94.   181428   57898 68.0% 01-Aug-02 06:01:48 +nano_68000
  95.   164904   52067 68.4% 30-Jul-02 06:58:18 +nano_68020
  96.      628     254 59.5% 06-Aug-02 08:07:20 +prog.info
  97.      266     128 51.8% 12-Apr-02 06:46:06 +ansi.n
  98.     1019     361 64.5% 23-Jul-02 16:54:46 +benchm.n
  99.     6346    1656 73.9% 25-May-02 17:28:24 +calendar.n
  100.      277     173 37.5% 23-Jul-02 16:00:56 +circle.n
  101.      795     374 52.9% 24-Jul-02 08:39:36 +circle_lang.n
  102.      970     310 68.0% 22-May-02 06:29:00 +clock.n
  103.      680     289 57.5% 25-May-02 15:35:02 +constyle.n
  104.     3923     968 75.3% 25-May-02 17:28:14 +date.n
  105.     5451    1317 75.8% 13-Jun-02 08:03:18 +date_data.n
  106.       26      26  0.0% 06-Aug-02 08:17:20 +hello.n
  107.      219     144 34.2% 05-Apr-02 06:59:00 +lab_demo.n
  108.     2666     874 67.2% 06-Jun-02 00:10:22 +primenum.n
  109. -------- ------- ----- --------- --------
  110.   395364  126420 68.0% 06-Aug-102 08:38:56   37 files
  111.  
  112. Operation successful.
  113.